﻿#ifndef ACCOUNTDOWNITEM_H
#define ACCOUNTDOWNITEM_H

#include <QWidget>
#include <QDebug>
#include <QDir>
#include <QPainter>
#include <QPainterPath>
#include <QPixmap>
#include <QMouseEvent>
namespace Ui {
class accountDownItem;
}

class accountDownItem : public QWidget
{
    Q_OBJECT

public:
    explicit accountDownItem(QString headImg,QString email,QString username,QWidget *parent = nullptr);
    ~accountDownItem();
signals:
    void sendUserInfo(QString account);
    void onClose();
protected:
    void mousePressEvent(QMouseEvent *event)override;
private:
    Ui::accountDownItem *ui;
    void drawHeadImg(QString imgRes);
    void deleteDirectoryContents(const QString &dirPath);
};

#endif // ACCOUNTDOWNITEM_H
